package service;

import dao.InfoDao;
import domain.Info;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by liuenming on 2019/11/2.
 */
@Transactional
public class InfoService {

    private InfoDao infoDao;

    public void setInfoDao(InfoDao infoDao) {
        this.infoDao = infoDao;
    }

    public void save(Info info){
        System.out.println("service...");
        infoDao.save(info);
    }
}
